class   CnChannelModel{
  String channelName;
  String avatar;
  String avatarThumbUrl;
  dynamic fromUserId;
  dynamic toUserId;
  String videoPlayMode;
  String videoFileUrl;
  int age;
  String country;
  bool isFree;
  bool isFriend;
  int chooseVideoSdk; //1.声网,2.bigo
  String nickname;
  int gender;
  int unitPrice; //主播通话单价
  String rtcToken; //声网token
  String uiTips; //拨打与被拨打界面显示的分钟话费文案
  factory CnChannelModel.coverFromJson(dynamic onCallData) => CnChannelModel(
      country: onCallData['country']??"",
      avatar: onCallData['avatar']??"",
      nickname: onCallData['nickname']??"",
      gender: onCallData['gender']??1,
      age: onCallData['age']??0,
      avatarThumbUrl: onCallData['avatarThumbUrl']??"",
      unitPrice: onCallData['unitPrice']??-1,
      channelName: onCallData['channelName']??"",
      chooseVideoSdk: onCallData['chooseVideoSdk']??1,
      fromUserId: onCallData['fromUserId']??0,
      isFree: onCallData['isFree'] ?? false,
      isFriend: onCallData['isFriend'] ?? false,
      rtcToken: onCallData['rtcToken']??"",
      toUserId: onCallData['toUserId']??0,
      uiTips: onCallData['uiTips']??"",
      videoFileUrl: onCallData['videoFileUrl']??"",
      videoPlayMode: onCallData['videoPlayMode']??"");

  CnChannelModel(
      {required this.country,
        required this.avatar,
        required this.nickname,
        required this.gender,
        required this.age,
        required this.avatarThumbUrl,
        required this.unitPrice,
        required this.channelName,
        required this.chooseVideoSdk,
        required this.fromUserId,
        required this.isFree,
        required this.isFriend,
        required this.rtcToken,
        required this.toUserId,
        required this.uiTips,
        required this.videoFileUrl,
        required this.videoPlayMode});
}